# class A:
#     def testA(self):
#         print('---A----test-----')
#     def demoA(self):
#         print('---A----test-----')
#
# class B:
#     def testB(self):
#         print('---B----test-----')
#     def demoB(self):
#         print('---B----test-----')
#
# class C(A,B):
#     pass
# class D(B,A):
#     pass
# c = C()
# c.testA()
# c.demoB()
# d = D()
# d.testA()
# d.demoB()



class A:
    def test(self):
        print('---A----test-----')
    def demo(self):
        print('---A----test-----')

class B:
    def test(self):
        print('---B----test-----')
    def demo(self):
        print('---B----test-----')

class C(A,B):
    pass
class D(B,A):
    pass
c = C()
c.test()
c.demo()
d = D()
d.test()
d.demo()